import { BasicColumn, FormSchema } from '@/components/Table';
import { h, ref } from 'vue';
import { Tag } from 'ant-design-vue';

import { useUserStore } from '@/store/modules/user';

const userStore = useUserStore();

//表格列名
export const columns: BasicColumn[] = [
  {
    title: '供应商名称',
    dataIndex: 'supplierName',
  },
  {
    title: '联系方式',
    dataIndex: 'phone',
  },
  {
    title: '联系人',
    dataIndex: 'contact',
  },
  {
    title: '地址',
    dataIndex: 'address',
  },
  {
    title: '创建时间',
    dataIndex: 'createTime',
    width:180
  },
];

export const searchFormSchema: FormSchema[] = [
  {
    field: 'keyword',
    label: '供应商名称',
    component: 'Input',
    colProps: { span: 8 },
  },
];

export const formSchema: FormSchema[] = [
  {
    field: 'supplierName',
    label: '供应商名称',
    required: true,
    component: 'Input',
  },
  {
    field: 'phone',
    label: '联系方式',
    component: 'Input',
  },
  {
    field: 'contact',
    label: '联系人',
    component: 'Input',
  },
  {
    field: 'address',
    label: '地址',
    component: 'Input',
  },
];
